package com.wf.day_0618.test1;

import com.wf.day_0618.test1.entity.A;

import java.lang.reflect.InvocationTargetException;
import java.util.Scanner;

/**
 * @author mpk
 * @since 2024/6/18 19:03:21
 */
public class TestA {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {

        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();

        Class<?> aClass = Class.forName(s);

        A instance =(A) aClass.newInstance();

        aClass.getMethod("showString").invoke(instance);


    }


}
